package com.android.tianyuanyouxuan.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

@Entity(
        indexes = {
                @Index(value = "date ASC", unique = false)
        }
)
public class Message {
    @Id(autoincrement = true)
    private Long id;

    @NotNull
    private String text;
    private String user;

    private String toUser;
    private java.util.Date date;
@Generated(hash = 1373535811)
public Message(Long id, @NotNull String text, String user, String toUser,
        java.util.Date date) {
    this.id = id;
    this.text = text;
    this.user = user;
    this.toUser = toUser;
    this.date = date;
}
@Generated(hash = 637306882)
public Message() {
}
public Long getId() {
    return this.id;
}
public void setId(Long id) {
    this.id = id;
}
public String getText() {
    return this.text;
}
public void setText(String text) {
    this.text = text;
}
public String getUser() {
    return this.user;
}
public void setUser(String user) {
    this.user = user;
}
public java.util.Date getDate() {
    return this.date;
}
public void setDate(java.util.Date date) {
    this.date = date;
}
public String getToUser() {
    return this.toUser;
}
public void setToUser(String toUser) {
    this.toUser = toUser;
}
}
